package com.iap.common.command
{
	import com.iap.common.service.IVectorService;
	import com.iap.common.signal.VectorByTagRequestSignal;
	
	import org.robotlegs.mvcs.SignalCommand;
	
	public class VectorByTagCommand extends SignalCommand
	{
		[Inject]
		public var service:IVectorService;
		[Inject]
		public var tagIds:Array;
		[Inject]
		public var task:String;

		override public function execute():void
		{
			service.task = task;
			switch(task)
			{
				case VectorByTagRequestSignal.GET:
				{
					service.getByTag(tagIds);
					break;
				}
			}
		}
	}
}